package com.ysyx.ysyx_nowtrack.controller;

import com.ysyx.ysyx_nowtrack.dto.BaseDto;
import com.ysyx.ysyx_nowtrack.service.TrackPojoService;
import org.apache.rocketmq.spring.core.RocketMQTemplate;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by IntelliJ IDEA.
 *
 * @description: xxxx接口/类
 * @author:郭宇轩
 * @create:2023/4/24 10:31
 */
@RestController
public class ReadTrackController {




    @Autowired
    private TrackPojoService trackPojoService;

    @Autowired
    private RocketMQTemplate rocketMQTemplate;

    @RequestMapping(value = "/track/readHistoryTrack",method = RequestMethod.GET)
    public BaseDto readHistoryTrack(String orderId){
        return trackPojoService.getOrderHistory(orderId);
    }

}
